<?php
// +----------------------------------------------------------------------
// | Copyright (c) 2023 yoncron All rights reserved.
// +----------------------------------------------------------------------
// | Author: yoncron <yoncron@163.com>
// +----------------------------------------------------------------------
namespace app\service;

use app\model\LoginRecordModel;

class LoginRecord
{
    public static function add($type='login',$username='',$comments='',$ip='',$app_id=null){
        Async::Do(LoginRecordModel::class,'create',['type'=>$type, 'username'=>$username, 'comments'=>$comments, 'ip'=>$ip, 'app_id'=>$app_id, 'add_time'=>time()]);
    }
}